package com.lovo.roomProject.system.service.impl;

import com.lovo.roomProject.pojo.SystemDO;
import com.lovo.roomProject.student.dao.StudentDAO;
import com.lovo.roomProject.student.dao.impl.StudentDAOImpl;
import com.lovo.roomProject.system.dao.SystemDAO;
import com.lovo.roomProject.system.dao.impl.SystemDAOImpl;
import com.lovo.roomProject.system.service.SystemService;

import java.util.List;

public class SystemServiceImpl implements SystemService{
    private SystemDAO systemDAO = new SystemDAOImpl();
    @Override
    public List listSystem() {
        return systemDAO.listSystem();
    }

    @Override
    public void insertSystem(SystemDO systemDO) {
        systemDAO.insertSystem(systemDO);
    }

    @Override
    public SystemDO getById(int systemId) {
       return systemDAO.getById(systemId);
    }

    @Override
    public void updateSystem(SystemDO systemDO) {
        systemDAO.updateSystem(systemDO);
    }

    @Override
    public void deleteSystem(int systemId,SystemDO loginUser) throws Exception {
        systemDAO.deleteSystem(systemId,loginUser);
    }
}
